package com.gg.hc.service.impl;

import com.gg.common.mapper.DesignModuleMapper;
import com.gg.common.pojo.DModuleDetails;
import com.gg.common.pojo.DesignModule;
import com.gg.common.pojo.MDesignProcedureModule;
import com.gg.hc.service.DesignModuleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DesignModuleServiceimpl implements DesignModuleService {

    @Resource
    private DesignModuleMapper designModuleMapper;


    @Override
    public DesignModule queryDModuleDetailsByproductId(String productId) {
        return designModuleMapper.queryDModuleDetailsByproductId(productId);
    }

    @Override
    public int updateDesignModuleTag(List<MDesignProcedureModule> mDesignProcedureModules) {
        return designModuleMapper.updateDesignModuleTag(mDesignProcedureModules);
    }

    @Override
    public DesignModule queryDesignModuleByproductId(String parenId) {
        return designModuleMapper.queryDesignModuleByproductId(parenId);
    }
}
